|
![](/i/fill.gif) |
Sometimes I wonder why I'm always copying other people's work...
Maybe because I don't need inspiration for that, and inspiration is exactly what
I don't have these days...
Anyway, this is my version of the cell-shader. It works with
perspective-cameras.
Comments welcome, as always :)
cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x) // ZK http://www.povplace.be.tf
Post a reply to this message
Attachments:
Download 'cellshadertest.jpg' (19 KB)
Preview of image 'cellshadertest.jpg'
![cellshadertest.jpg](/povray.binaries.images/attachment/%3C3cc7709d%40news.povray.org%3E/cellshadertest.jpg?preview=1)
|
![](/i/fill.gif) |